

function getPoints(){
    var points = [];
    return getPointReal().map(function(d){
        var pt = d[4].split(",");
        // console.log(pt);
        return {"lnglat":[pt[0], pt[1]], "name":d[1], "style":2};
    });
    return points;
}

var source = [
    {
        title:'商品销售有效订购总金额趋势',
        label:'家有购物累计有效订单金额',
        unit:'万元',
        data:[
            ['2017-08', '55.83'],
            ['2017-09', '70.88'],
            ['2017-10', '55.43'],
            ['2017-11', '99.85'],
            ['2017-12', '204.29'],
            ['2018-01', '299.84'],
            ['2018-02', '391.21'],
            ['2018-03', '368.16'],
            ['2018-04', '418.02'],
            ['2018-05', '481.56']
        ]
    }, {
        title:'商品销售地区分布',
        data:[
            ['四川', '10,344,081.00'],
            ['重庆', '5,199,178.00'],
            ['青海', '3,565,265.00'],
            ['安徽', '3,100,624.00'],
            ['广东', '430,380.00'],
            ['山东', '243,650.00'],
            ['西藏', '943,650.00'],
            ['甘肃', '843,650.00'],
        ]
    }, {
        title:'各地有效订单金额趋势',
        names:['成都', '重庆', '青海', '安徽', '广东', '山东', '西藏', '甘肃'],
        data:[
            {'name':'2017-12', value:['189.81', '95.89', '0.04', '0.00', '14.02', '0.43', '12.02', '0.43']},
            {'name':'2018-01', value:['156.66', '74.87', '28.70', '29.95', '9.55', '0.12', '1.02', '0.43']},
            {'name':'2018-02', value:['161.76', '97.21', '87.45', '43.89', '0.65', '0.26', '4.02', '10.4']},
            {'name':'2018-03', value:['137.83', '104.48', '81.33', '43.46', '0.25', '0.81', '0.2', '60.3']},
            {'name':'2018-04', value:['150.87', '113.08', '82.38', '70.51', '0.98', '0.2', '39.2', '8.43']},
            {'name':'2018-05', value:['151.60', '130.28', '76.67', '122.25', '0.51', '0.24', '55.2', '0.4']}
        ]
    }, {
        title:'有效订单金额按月趋势',
        data:[
            ['2018年4月', '682080'],
            ['2018年5月', '1190202']
        ]
    }, {
        title:'销售往来单位类别分布',
        data:[
            ['省内经营企业', '380277'],
            ['省内医疗机构', '303717'],
            ['省外经营企业', '254714'],
            ['省外医疗机构', '203574'],
            ['医疗器械企业', '143574'],
            ['电商客户', '183574'],
        ]
    }, {
        title:'传统覆盖合同签订金额',
        data:[
            ['1月', '800'],
            ['2月', '600'],
            ['3月', '8908.75'],
            ['4月', '1158.3'],
            ['5月', '2317.74']
        ]
    }, {
        title:'传统覆盖审计确认收入',
        names:['收入（元）', '成本（元）', '毛利', '毛利率'],
        data:[
            {'name':'1月', value:['5618000', '4687800', '930200', '0.165574938']},
            {'name':'2月', value:['3708500', '3100100', '608400', '0.164055548']},
            {'name':'3月', value:['8450700', '7536900', '913800', '0.108133054']},
            {'name':'4月', value:['31291448.82', '25115175.97', '6176272.85', '0.197378935']}
        ]
    }, {
        title:'传统覆盖回款',
        data:[
            ['1月', '6800000'],
            ['2月', '2508722.48'],
            ['3月', '14589821.1'],
            ['4月', '5983290'],
            ['5月', '16429500']
        ]
    }, {
        title:'联合运营项目进展',
        names:['合同', '开票', '回款'],
        data:[
            ['16890', '6232.89', '6232.89'],
            ['14906', '498', '0'],
            ['9303.74', '349.37', '0']
        ]
    }, 
    ////-------------------------9--------------------------------
    {
        title:'销售团队销售业绩统计',
        data:[
            ['销售团队1', '1223'],
            ['销售团队2', '728'],
            ['销售团队3', '328']
        ]
    }, {
        title:'上半年商品销售排名Top20',
        names:['1月', '2月', '3月', '4月', '5月'],
        data:[
            {'name':'芪枣健胃茶', value:['1', '0', '0', '1', '0', '0']},
            {'name':'葡萄糖酸钙', value:['7', '0', '0', '1', '0', '0']},
            {'name':'振源口服液', value:['5', '2', '0', '0', '0', '0']},
            {'name':'六味地黄丸', value:['8', '1', '0', '2', '0', '0']},
            {'name':'黄连上清片', value:['9', '1', '0', '1', '0', '1']},
            {'name':'板蓝根颗粒', value:['6', '4', '0', '3', '1', '0']},
            {'name':'硼酸', value:['12', '2', '1', '4', '0', '0']},
            {'name':'开塞露', value:['5', '1', '0', '3', '0', '0']},
            {'name':'载玻片', value:['8', '3', '0', '7', '1', '0']},
            {'name':'新疆骏枣', value:['0', '2', '0', '0', '0', '0']},
            {'name':'狗头枣秦', value:['3', '1', '0', '4', '0', '0']},
            {'name':'舒目冷敷凝胶', value:['5', '0', '0', '2', '0', '0']},
            {'name':'耳舒冷敷凝胶', value:['8', '1', '0', '3', '0', '0']},
            {'name':'氧氟沙星胶囊', value:['8', '0', '0', '4', '0', '1']},
            {'name':'乳酸依沙吖啶', value:['5', '0', '0', '3', '0', '0']},
            {'name':'小儿退热口服液', value:['13', '0', '1', '6', '1', '0']},
            {'name':'复方庆大霉素膜', value:['13', '1', '1', '2', '0', '0']},
            {'name':'云南白药气雾剂', value:['7', '0', '0', '4', '0', '0']},
            {'name':'维生素D3', value:['13', '1', '0', '0', '0', '0']},
            {'name':'维C银翘片', value:['5', '0', '0', '2', '0', '0']}
        ]
    }, {
        title:'商品类别销售量占比',
        data:[
            ['片剂', '152'],
            ['胶囊剂', '120'],
            ['颗粒剂', '89'],
            ['丸剂', '54'],
            ['注射剂', '60'],
            ['滴眼剂', '20'],
            ['贴剂', '32'],
            ['糖浆剂', '10']
        ]
    }, {
        title:'近一月商品总销售量统计',
        data:[
            ['5月1', '27.45'],
            ['5月2', '21.5'],
            ['5月3', '35.5'],
            ['5月4', '67.25'],
            ['5月5', '81.75'],
            ['5月6', '91.75'],
            ['5月7', '70.5'],
            ['5月8', '48.5'],
            ['5月9', '18.75'],
            ['5月10', '30.25'],
            ['5月11', '26'],
            ['5月12', '25.25'],
            ['5月13', '13'],
            ['5月14', '9.5'],
            ['5月15', '34.75'],
            ['5月16', '91.5'],
            ['5月17', '95.28'],
            ['5月18', '16.80'],
            ['5月19', '19.43'],
            ['5月20', '45.64']
        ]
    }, {
        title:'上半年业务员销售业绩统计',
        names:['1月', '2月', '3月', '4月', '5月'],
        data:[
            {'name':'曾敏', value:['3', '8', '1', '0', '0']},
            {'name':'张莉', value:['6', '5', '0', '0', '0']},
            {'name':'王梅', value:['7', '2', '4', '1', '0']},
            {'name':'赵四', value:['4', '6', '3', '4', '2']},
            {'name':'李一', value:['7', '7', '5', '4', '2']},
            {'name':'李二', value:['22', '13', '3', '3', '0']},
            {'name':'李三', value:['2', '11', '6', '2', '1']},
            {'name':'李四', value:['4', '6', '6', '2', '0']},
            {'name':'李五', value:['0', '4', '1', '1', '0']},
            {'name':'李六', value:['6', '2', '1', '1', '1']},
            {'name':'李七', value:['14', '2', '0', '0', '0']},
            {'name':'李八', value:['6', '2', '1', '0', '1']},
            {'name':'宋一', value:['9', '5', '1', '1', '0']},
            {'name':'宋二', value:['10', '11', '2', '1', '0']},
            {'name':'宋三', value:['7', '6', '3', '1', '0']},
            {'name':'宋四', value:['2', '4', '0', '0', '0']},
            {'name':'宋五', value:['7', '2', '1', '0', '0']},
            {'name':'宋六', value:['21', '4', '0', '1', '0']},
            {'name':'宋七', value:['6', '4', '0', '0', '0']},
            {'name':'宋八', value:['3', '2', '0', '0', '0']}
        ]
    }, {
        title:'销售开票人统计',
        data:[
            ['何金华', '148'],
            ['杨春燕', '107'],
            ['徐峰', '38'],
            ['蒋俊杰', '22'],
            ['刘建华', '8'],
        ]
    }, 
    ////---------------------------------------------------------------------
    {
        title: '盈亏平衡点有效销售金额',
        names:['2018/5/20', '2018/5/27', '2018/6/20', '2018/7/20', '2018/8/20', '2018/9/20', '2018/10/20', '2018/11/20', '2018/12/20', '2019/1/20', '2019/2/20', '2019/3/20', '2019/4/20'],
        data: [
            {'name':'毛利15%有效销售金额', value:[1568627, 1882352, 18823529]},
            {'name':'企业盈亏平衡点', value:[16000000]},
            {'name':'毛利20%有效销售金额', value:[1666666, 2000000, 20000000]},
            {'name':'现有有效销售金额', value:[1579264]}
        ]
    }, {
        title: 'IPTV4盈亏平衡点有效销售额',
        names: ['分成比例10%', '分成比例12%', '分成比例15%'],
        data:[
            {'name':'盈亏平衡点有效销售额', value:['9032', '7527', '6021']},
            {'name':'目标毛利15%有效销售额', value:['10626', '8855', '7084']},
            {'name':'目标毛利20%有效销售额', value:['11290', '9408', '7527']}
        ]
    }
    
];






function getPointReal(){
    var source = [
        ["898460158140047","海口美兰凯禾中式便捷快餐店","0","海口美兰凯禾中式便捷快餐店","110.372,20.033478"],
        ["898460180430088","海南精功眼镜连锁有限公司","1","海南精功眼镜连锁有限公司","110.358305,20.028817"],
        ["898460150210364","海口美兰振皇家居店","1","海口美兰振皇家居店","110.363569,20.030006"],
        ["898460150210360","海口美兰万恒家居店","1","海口美兰万恒家居店","110.363569,20.030006"],
        ["898460159980210","海口松岛名门超市有限公司","0","海口市蓝天路28号名门广场E栋2号","110.352285,20.022569"],
        ["898460158121351","海南阿正靓汤饮食有限公司","0","海南阿正靓汤饮食有限公司","110.353031,20.023766"],
        ["898460147220029","海南阳光国际旅行社有限公司","0","海口市蓝天路31号名门广场B栋1108房","110.352544,20.022897"],
        ["898460154990076","海口美兰邱天月特产专卖店","0","海口市蓝天路民生市场临街铺面20号","110.356773,20.024921"],
        ["898460158129542","海口美兰渝奇味老火锅餐饮店","0","海口美兰渝奇味老火锅餐饮店","110.348979,20.030067"],
        ["898460158121371","海口美兰原味主张名门店","1","海口美兰原味主张名门店","110.358305,20.028817"],
        ["898460180110118","海口美兰戴丽医疗美容诊所","1","海口美兰戴丽医疗美容诊所","110.351509,20.021749"],
        ["100460148140100","海口美兰蓝天电信特许营业厅","0","海口市蓝天路50号中建花园铺面","110.357434,20.024420"],
        ["898460145110106","海口鸿汇商旅有限公司","0","海口市蓝天路12号银龙大厦A座307房","110.346906,20.021187"],
        ["898460170130055","海南民本房地产交易服务有限公司","0","海南省海口市龙华区蓝天路4号","110.341222,20.025802"],
        ["898460158121010","海南龙泉人酒家有限公司","1","海南龙泉人酒家有限公司","110.352510,20.022708"],
        ["898460145110814","海南旅总国际旅行社有限公司","0","海南旅总国际旅行社有限公司","110.342711,20.023935"],
        ["898460158124702","海口美兰鑫余味重庆老火锅餐饮店","1","海口美兰鑫余味重庆老火锅餐饮店","110.357269,20.027789"],
        ["898460159770027","海口凯粤房地产投资咨询有限公司","0","海口凯粤房地产投资咨询有限公司","110.35329,20.026526"],
        ["303460154221352","海口市幕森影城有限公司","1","海南省海口市蓝天路31号名门广场北区第三层C005号商铺","110.353233,20.024103"],
        ["303460153310001","海口美兰兰林超市","0","海口市蓝天路西21号汇亘大厦一楼","110.342957,20.023671"],
        ["898460159210252","海口银岛洋酒商行","1","海南省海口市蓝天路23号","110.348200,20.021700"],
        //["898460175230174","海南海亮汽车租赁有限公司","0","海南海亮汽车租赁有限公司","110.344607,20.063850"],
        ["303460158120061","海南阿正靓汤饮食有限公司","0","海口市蓝天路31号名门广场北区B幢709","110.353031,20.023766"],
        ["898460156410040","海口美兰可爱可亲母婴用品生活馆","0","海口市蓝天路41号","110.354569,20.024504"],
        ["898460159988593","海南华新商务有限公司","0","海南华新商务有限公司","110.357299,20.031207"],
        ["898460159210248","海口美兰老地方烟酒行","0","海南省海口市蓝天路36号","110.354019,20.023193"],
        ["898460150210037","海口美兰德邦家居店","0","海口市蓝天路42号永安第一家私广场","110.357000,20.024614"],
        ["898469047220003","海南海世界旅行社有限公司","0","海南省海口市蓝天路西21号汇亘大厦201室","110.342957,20.023671"],
        ["898460159981276","海口美兰邱天月特产专卖店","0","海南省海口市美兰区蓝天路民生市场临街铺面","110.356773,20.024921"],
        ["898460158121220","海口美兰金燕府菜馆","1","海口美兰金燕府菜馆","110.358373,20.028819"],
//        ["898460158140047","海口美兰凯禾中式便捷快餐店","0","海口美兰凯禾中式便捷快餐店","110.198293,20.044001"]
    ];
    return source;
}




var smb_circle = 'image://';


